<template>
<el-row class="tac" style="height: 100%;background-color: rgb(84, 92, 100);">
    <el-col :span="24" style="width:100.5%">

        <el-menu
                default-active="2"
                class="el-menu-vertical-demo"
                @open="handleOpen"
                @close="handleClose"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"

                >
            <el-submenu index="1" collapse="true">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>科目一</span>
                </template>
                <el-menu-item-group >
                    <template slot="title">分类列表</template>
                    <el-menu-item index="1-1">
                        <router-link to="/admin/cateadd" tag="li">分类添加
                        </router-link>
                    </el-menu-item>
                    <el-menu-item index="1-5">
                        <router-link to="/admin/chapteradd" tag="li">章节添加
                        </router-link>
                    </el-menu-item>
                    <el-menu-item index="1-2">
                        <router-link to="/admin/subone" tag="li">科目一题库
                        </router-link>
                    </el-menu-item>
                    <el-menu-item index="1-6">
                        <router-link to="/admin/subone/problem" tag="li">常见问题
                        </router-link>
                    </el-menu-item>
                    <el-menu-item index="1-7">
                        <router-link to="/admin/adlist" tag="li">广告添加
                        </router-link>
                    </el-menu-item>
                </el-menu-item-group>
                <el-menu-item-group title="图片管理">
                    <el-menu-item index="1-3">
                        <router-link to="/admin/subone/cate" tag="li">图片,标志分类
                        </router-link>
                    </el-menu-item>
                    <el-menu-item index="1-4">
                        <router-link to="/admin/image/list" tag="li">图片,标志列表
                        </router-link>
                    </el-menu-item>
                </el-menu-item-group>

            </el-submenu>
            <el-submenu index="2">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>科目二</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="2-1">
                        <router-link to="/admin/subtwo/catelist" tag="li">分类列表
                        </router-link></el-menu-item>
                    <el-menu-item index="2-2"><router-link to="/admin/subtwo/videolist" tag="li">视频列表
                    </router-link></el-menu-item>
                </el-menu-item-group>

            </el-submenu>
            <el-submenu index="3">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>科目三</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="3-1">
                        <router-link to="/admin/subthree/mp3" tag="li">音频列表
                        </router-link>
                    </el-menu-item>

                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="4">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>科目四</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="4-1">
                        <router-link to="/admin/subfour" tag="li">科目四题库
                        </router-link>
                    </el-menu-item>

                </el-menu-item-group>
            </el-submenu>


        </el-menu>
    </el-col>
</el-row>
</template>
<style>
    .el-menu--horizontal {
        border-bottom: solid 0px #e6e6e6;
    }
    .el-submenu .el-menu-item {
        height: 50px;
        line-height: 50px;
        padding: 0 45px;
        min-width: 0px;
    }
</style>
<script>
    export default {
        methods: {
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }
</script>